# -*- coding : utf_8 -*-
'''
=======================================
Time : 2025/4/1 11:24
Author : 田霄汉
Email : 522989570@qq.com
File : all.py
Project : unittest_demo
=======================================
'''

import unittest
from script.test_api import TestAPI

if __name__ == '__main__':
    # suite = unittest.TestSuite()
    # suite.addTest(TestAPI('test_01_qq'))
    # suite.addTest(TestAPI('test_02_laohuangli'))
    # suite.addTest(TestAPI('test_03_qq'))
    # suite.addTest(TestAPI('test_04_laohuangli'))
    # unittest.main(defaultTest='suite')

    loader = unittest.defaultTestLoader.discover(start_dir='./testcase', pattern='test_*.py')
    unittest.main(defaultTest='loader', verbosity=2)